home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 890 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.7 KB

  1. From: Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE>
  2. Subject: Re: dreaddir/fxattr
  3. Date: Wed, 19 Jan 94 14:58:41 MET DST
  4. In-Reply-To: <9401191138.AA11388@issan.informatik.uni-dortmund.de>; from "Andreas Schwab" at Jan 19, 94 12:38 pm
  5.  
  6. > Julian Reschke <reschke@GOEDEL.UNI-MUENSTER.DE> writes:
  7. > |> Below is a first draft:
  8. > |> Proposal for a combined call for Dreaddir/Fxattr:
  9. > |> LONG Dreadattr( WORD len, LONG dirhandle, char *buf, WORD lflag, XATTR *xattr);
  10. > |> len, dirhandle and buf are just like in Dreaddir. lflag and xattr
  11. > |> are the standard parameters for Fxattr.
  12. > I don't think this is needed. Look at the latest version of GNU find.
  13. > It makes many optimizations regarding the need to stat() a file.
  14. > E.g., when running on a directory with no subdirectories, and you only
  15. > need the names of the files, it doesn't make any stat() calls. Such
  16.  
  17. There are a lot of cases when you can't do that information. find -printf,
  18. du, desktops displaying file windows and so on.
  19.  
  20. > optimizations will give you more than a new system call, which is also
  21. > difficult to bind into the existing dirent interface. (Of course, the
  22. > optimizations are only possible on MinixFS, where you have real link
  23. > counts for directories.)
  24.  
  25. The new system call can be implemented as frontend for the other two
  26. calls. And it adds the possibility to optimize it in a future TOS.XFS.
  27.  
  28. > If you can fix it by software, why changing the kernel? :)
  29.  
  30. That's the whole issue: it's ths OS interface which is needlessly slow
  31. and complicated.
  32.  
  33. -- 
  34. ---------------------------------------------------
  35. Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
  36.  eMail: reschke@math.uni-muenster.de jr@ms.maus.de
  37. ___________________________________________________
  38.